const {
  createProxyMiddleware
} = require("http-proxy-middleware")
module.exports = function (app) {
  app.use(createProxyMiddleware("/devApi", {
    target: "http://www.web-jshtml.cn/api/react ", //配置请求服务器的地址
    changeOrigin: true,
    pathRewrite:{
      "^/devApi":""
    }
  }))
  // app.use(proxy("/manage/api",{
  //   target:"http://admintest.happymmall.com:7000 ",//配置请求服务器的地址
  //   changeOrigin:true
  // }))
}